package cn.mafangui.hotel.req;

import com.sun.istack.internal.NotNull;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import springfox.documentation.annotations.ApiIgnore;

import java.io.Serializable;
import java.util.Date;

/**
 * @author kalpa
 * @date 2022/3/16 12:40
 * @description
 */
@ApiIgnore
@ApiModel("前台直接入住登记入参")
@Data
public class DirectInReq implements Serializable {
    private static final long serialVersionUID = -7898613841357156546L;
    //  ------------------------     个人信息

    @ApiModelProperty(value = "姓名",required = true)
    @NotNull
    private String name;

    @ApiModelProperty(value = "手机号",required = true)
    @NotNull
    private String phone;

    @ApiModelProperty(value = "身份证号",required = true)
    @NotNull
    private String idCard;

    //  ------------------------     订单信息

    @ApiModelProperty("入住人数")
    private Integer peoCount;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始日期",required = true)
    @NotNull
    private Date startDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("结束日期")
    private Date endDate;

    @ApiModelProperty(value = "入住天数",required = true)
    @NotNull
    private Integer days;

    @ApiModelProperty(value = "房间类型id", required = true)
    @NotNull
    private Integer roomTypeId;

    @ApiModelProperty(value = "房间类型",required = true)
    @NotNull
    private String roomType;

    @ApiModelProperty(value = "订单费用",required = true)
    @NotNull
    private Double orderCost;
}
